import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import JsonViewer from 'vue-json-viewer'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import myaxios from './axios'


const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(Antd)
app.use(router)
app.use(store)
myaxios.defaults.baseURL = '/api'
app.config.globalProperties.$http = myaxios
app.use(JsonViewer)
// 关闭vue的提示
app.config.productionTip = false
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// app.use(Vant)

app.mount('#app')

